home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
126-150
/
scopedisk132
/
viewdir
/
viewd.notes
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
24 lines
ViewDir - A Directory Reading program for your CLI C: directory
PRINCIPAL REASON FOR revision, April 1990:
The agony was in the conceptualization rather than the coding.
Reasoning went through these stages:
--A directory name would cause contents to be seen.
--Why not allow a file name, to examine specific file?
--Version 1 didn't give enough detail on specific file.
--Whoa! If you may type a file name for details on the
file ... you should get (total) details on the directory,
as well as "contents" detail. If you name an empty directory,
you'd otherwise get <nothing>.
--Add indentation to make the DIR summary line stand out.
--Program doesn't use pattern matching, but SPAT might
do the job. Oops: it doesn't, until following are added.
-> Permit file name to be enclosed in quotes. Originally,
the program just took the command line tail, and didn't like
you to use quotes. Now, either way will work.
-> SPAT likes to throw a bunch of spaces at the end of
CLI command lines. Extra parsing to skim them.
Some of the above is mechanics, some re-conceptualization.
It should be no surprise that, with the above modifications,
the program got smaller.
--Jim B